home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc((((3333xxxx)))) VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkPeriodic - Support for performing actions at regular periodic intervals
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- VkCallbackObject
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkPeriodic.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkPeriodic(int interval);
- virtual void ~VkPeriodic(void);
-
-
- SSSSttttaaaarrrrttttiiiinnnngggg aaaannnndddd SSSSttttooooppppppppiiiinnnngggg
- void start(void);
- void stop(void);
-
-
- PPPPRRRROOOOTTTTEEEECCCCTTTTEEEEDDDD PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- UUUUppppddddaaaatttteeeessss
- virtual void tick(void);
-
-
- PPPPrrrrooootttteeeecccctttteeeedddd DDDDaaaattttaaaa MMMMeeeemmmmbbbbeeeerrrrssss
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- VkPeriodic provides a simple, convenient interface to the Xt timeout
- mechanism. For many applications, it is sufficient to call
- _X_t_A_p_p_A_d_d_T_i_m_e_O_u_t() directly. However, VkPeriodic provides the ability
- to encapsulate a common use of _X_t_A_p_p_A_d_d_T_i_m_e_O_u_t(), as a cyclic timer,
- in a C++ class.
-
- The VkPeriodic class can be used in one of two way. The first is to
- derive a new class from VkPeriodic that overrides the _t_i_c_k() virtual
- member function. The _t_i_c_k() member function is called for each cycle
- of the periodic timeout. This approach has the advantage that any
- data being used in connection with the timeout can be declared and
- maintained as data member(s) of the derived class.
-
- The VkPeriodic class also supports a ViewKit callback that allows
- other C++ classes to register member functions to be called with
- each periodic timeout. This approach is more convenient when a
- simple timer is needed to drive some other class.
-
- These two methods are not mutually-exclusive, and both approaches
- may be used together at once.
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc((((3333xxxx)))) VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc((((3333xxxx))))
-
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- ttttiiiicccckkkk(((())))
- virtual void tick(void);
-
-
- This function can be overridden by derived classes to allow them to
- be notified when each timeout occurs.
-
- VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc(((())))
- VkPeriodic(int interval);
-
-
- The constructor initializes a VkPeriodic object, creating a timer to
- be called every _i_n_t_e_r_v_a_l milliseconds. The interval is approximate
- because it relies on the underlying Xt mechanism, which is based on
- _s_e_l_e_c_t(). If an application does not return to the Xt event loop
- regularly, the timeout will not occur.
-
- ~~~~VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc(((())))
- virtual void ~VkPeriodic(void);
-
-
- Clean up all memory allocated by a VkPeriodic object. Any pending
- timer is removed.
-
- ssssttttaaaarrrrtttt(((())))
- void start(void);
-
-
- Start the timer. This function must be called to start the periodic
- timeouts.
-
- ssssttttoooopppp(((())))
- void stop(void);
-
-
- Stop the timer.
-
- ssssttttaaaattttiiiicccc ccccoooonnnnsssstttt cccchhhhaaaarrrr ****ccccoooonnnnsssstttt ttttiiiimmmmeeeerrrrCCCCaaaallllllllbbbbaaaacccckkkk;;;;
- static const char *const timerCallback;
-
-
- This callback list allows other C++ classes derived from
- VkCallbackObject to register member functions to be called at
- periodic intervals.
-
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
- callCallbacks(), addCallback(), removeCallback(),
- removeAllCallbacks()
-
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc((((3333xxxx)))) VVVVkkkkPPPPeeeerrrriiiiooooddddiiiicccc((((3333xxxx))))
-
-
-
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-